home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Printing / STD File Saver 2.1.1 / Source / StdFileSaver.a < prev    next >
Encoding:
Text File  |  1996-09-24  |  1.2 KB  |  51 lines  |  [TEXT/MPS ]

  1. ;
  2. ; Copyright 1991-1996 Apple Computer. All rights reserved.
  3. ;
  4. ;    You may incorporate this sample code into your applications without
  5. ;    restriction, though the sample code has been provided "AS IS" and the
  6. ;    responsibility for its operation is 100% yours.  However, what you are
  7. ;    not permitted to do is to redistribute the source as "DSC Sample Code"
  8. ;    after having made changes. If you're going to re-distribute the source,
  9. ;    we require that you make it clear in the source that the code was
  10. ;    descended from Apple Sample Code, but that you've made changes.
  11. ;
  12.  
  13. ; all functions just say that everything is fine and nothing else
  14. ; see also StdFileSaver.c for an alternate version of the driver
  15. ;
  16. ; a printer driver related to a physical device would do more
  17.  
  18.  
  19. _Debugger    OPWORD    $A9FF
  20.  
  21. XPRINT    PROC    EXPORT
  22.     
  23.     DC.W    $0C00
  24.     DC.W    $0000
  25.     DC.W    $0000
  26.     DC.W    $0000
  27.     DC.W    DRVROPEN
  28.     DC.W    DRVRPRIME
  29.     DC.W    DRVRCONTROL
  30.     DC.W    DRVRSTATUS
  31.     DC.W    DRVRCLOSE
  32.     DC.B    '.Print'
  33.     DC.B    $20
  34.  
  35. DRVROPEN
  36.     MOVE.B    $0A,$0007(A1)    ; this sets the version to 0xa
  37.             ; this version is used by PrDrvrVers()
  38.  
  39. DRVRPRIME
  40. DRVRSTATUS
  41. DRVRCLOSE
  42.     MOVEQ    #$00,D0
  43.     RTS
  44. DRVRCONTROL
  45.     MOVEQ    #$00,D0
  46.     MOVE.L    $08FC,-(A7)    ; $08FC is JIODone
  47.     RTS
  48.  
  49.     ENDPROC
  50.     END
  51.